<?php
require($abs_admin_cppath . '/header.php');
$sql="select count(*) as gg_num from yu_ggsq where display=0";
$conn       = & get_db_conn();
$rs   = $conn->GetRow($sql);
$gg_num      = $rs["gg_num"];//广告待审核

$stime=strtotime(date("Y-m-d 00:00:00"));
$etime=strtotime(date("Y-m-d 23:59:59"));
//echo $stime."<br>".$date("Y-m-d 23:59:59");
//exit;
$sq="select count(*) as hy_num from yu_members where regdate>$stime and regdate<$etime";
$hy_var   = $conn->GetRow($sq);
$hy_num      = $hy_var["hy_num"];//新增会员

$s="select count(*) as xm_num from yu_article where pub_time>$stime and pub_time<$etime and cata_id=1";
$xm_var   = $conn->GetRow($s);
$xm_num      = $xm_var["xm_num"];//新增项目

$ss="select count(*) as sxm_num from yu_article where display=0 and cata_id=1";
$sxm_var   = $conn->GetRow($ss);
$sxm_num      = $sxm_var["sxm_num"];//待审核项目

?>
<SCRIPT LANGUAGE="JavaScript">
<!--
function Year_Month(){
    var now = new Date();
    var yy = now.getYear();
    var mm = now.getMonth();
    var mmm=new Array();
    mmm[0]="1月";
    mmm[1]="2月 ";
    mmm[2]="3月";
    mmm[3]="4月";
    mmm[4]="5月";
    mmm[5]="6月";
    mmm[6]="7月";
    mmm[7]="8月";
    mmm[8]="9月";
    mmm[9]="10月";
    mmm[10]="11月";
    mmm[11]="12月";
    mm=mmm[mm];
    return mm;
}
function thisYear(){
    var now = new Date();
    var yy = now.getFullYear();
    return(yy );
}
function Date_of_Today(){
    var now = new Date();
    return(now.getDate() );
}
function CurentTime() {
    var now = new Date();
    var hh = now.getHours();
    var mm = now.getMinutes();
    var ss = now.getTime() % 60000;
    ss = (ss - (ss % 1000)) / 1000;
    var clock = hh+':';
    if (mm < 10) clock += '0';
    clock += mm+':';
    if (ss < 10) clock += '0';
    clock += ss;
    return(clock);
}
function refreshCalendarClock(){
    document.all.calendarYear.innerHTML = thisYear() + '年';
    document.all.calendarDay.innerHTML = Date_of_Today() + '日';
    document.all.calendarMonth.innerHTML = Year_Month();
    document.all.calendarClock4.innerHTML = CurentTime();
}
//-->
</SCRIPT>
<div id="top">
	<div class="top_bar">
		<ul>
			<li class="item"><font id="font_yellow">&nbsp;<?php echo $_SESSION[$G_admin_session_key]['realname']; ?></font>你好！ 
欢迎您进入<font id="font_yellow"><?php echo $G_cfg['site_info']['corp_name']; ?></font>网站管理系统，现在是
<SCRIPT language=javascript>
<!--
document.write('<span id="calendarYear" >'+thisYear()+'年</span>');
document.write('<span id="calendarMonth" >'+Year_Month()+'</span>');
document.write('<span id="calendarDay" >'+Date_of_Today()+'日</span>');
document.write('<span id="calendarClock4" >'+CurentTime()+'</span>');
setInterval('refreshCalendarClock()',1000);
//-->
</SCRIPT>
。祝您工作愉快！</li>
        </ul>
        <div class="clearB"></div>
    </div>
<div class="datacontainer2" style="width:720px;clear:both; margin-top:10px;">
<div class="header">
消息信息
</div>
<table BORDER="0" cellpadding="0" cellspacing="0" width="100%" class="list_table">
<TR>
	<TD align="left">&nbsp;&nbsp;<b>广告位购买申请有
		<font color="#FF0000"><?php echo $gg_num;?></font> 条待处理</b>	&nbsp;<a href="admin.php?mod=ad&action=sli">马上处理</a></TD>
	</TR>

<TR>
	<TD align="left">&nbsp;&nbsp;<b>今日新增加会员
	  <font color="#FF0000"><?php echo $hy_num;?></font> 人</b>	&nbsp;<a href="admin.php?mod=members&action=li">马上查看</a></TD>
</TR>

<TR>
	<TD align="left">&nbsp;&nbsp;<b>今日新发布项目
	  <font color="#FF0000"><?php echo $xm_num;?></font> 条&nbsp;&nbsp;<font color="#FF0000"><?php echo $sxm_num;?></font> 条待审核</b>	<a href="admin.php?mod=pro&action=li&cata=1&display=2">马上审核</a></TD>
</TR>   
   
    
</TABLE>

<div class="header" style="margin-top:10px;">
站点信息
</div>
<table BORDER="0" cellpadding="0" cellspacing="0" width="100%" class="list_table">
<TR>
	<TD width="120" align="right" class="caption">公司名称</TD>
	<TD class="cell" colspan="3">
		<?php echo $G_cfg['site_info']['corp_name']; ?>
	</TD>
</TR>

<TR>
	<TD width="120" align="right" class="caption">站点名称</TD>
	<TD class="cell" colspan="3">
		<?php echo $G_cfg['site_info']['site_name']; ?>
	</TD>
</TR>
<TR>
	<TD width="120" align="right" class="caption">默认SEO数据</TD>
	<TD class="cell" colspan="3">
<TABLE border="0" cellpadding="2" cellspacing="2" width="100%" class="none_border">
<TR>
    <TD width="120" align="right">title：</TD>
    <TD><?php echo $G_cfg['site_info']['seo_title']; ?></TD>
</TR>
<TR>
    <TD width="120" align="right">keywords：</TD>
    <TD><?php echo $G_cfg['site_info']['seo_keywords']; ?></TD>
</TR>
<TR>
    <TD width="120" align="right">description：</TD>
    <TD><?php echo $G_cfg['site_info']['seo_description']; ?></TD>
</TR>
</TABLE>
	</TD>
</TR>
<TR>
	<TD width="120" align="right" class="caption">系统信息</TD>
	<TD class="cell" colspan="3">
<?php echo $G_cfg['site_info']['cms_copyright']; ?> <br /><br />



<?php echo $G_cfg['site_info']['cms_name']; ?>&nbsp;
<FONT COLOR="#FF0000"><?php echo $G_cfg['site_info']['cms_ver']; ?></FONT> Licensed to <?php echo $G_cfg['site_info']['corp_name']; ?> <br />


<B>package time: </B><?php echo $G_cfg['site_info']['cms_packtime']; ?><br />
<B>packager: </B><?php echo $G_cfg['site_info']['cms_packprogramer']; ?><br />
	</TD>
</TR>
</TABLE>
</div>
<?php
require($abs_admin_cppath . '/footer.php');
?>